package com.code.AZPlan.model.po;

import com.code.commons.model.po.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;

/**
 * XT兑换比例PO
 *
 * @author tangyifei
 */
@ApiModel("XT兑换比例PO")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class XTExchangeRate extends BasePO<Long> {

    private static final long serialVersionUID = -9218507490932456608L;

    @ApiModelProperty(value = "主键", example = "1")
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;

    @ApiModelProperty(value = "类型（BTC_USDT   XWC_USDT）", example = "1")
    @NotBlank(message = "类型（BTC_USDT   XWC_USDT）不能为空")
    private String exchangeType;

    @ApiModelProperty(value = "兑换比例", example = "XWC")
    @NotBlank(message = "兑换比例不能为空")
    private String exchangeRate;
}
